home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / cshx86.zip / SAMPLES / SAMPLES.MAK < prev    next >
Makefile  |  1993-04-14  |  1KB  |  61 lines

  1. !ifndef CPU
  2. CPU            =    i386
  3. !endif
  4.  
  5. !if "$(CPU)" != "ALPHA"
  6. stdflags        =    -c -Oxa -W4 -DNT -Dcdecl= -Dend=EndOfData -Fo$(obj)\$(@B).obj -DWIN32
  7. cvtobj        =    REM    No longer needed.
  8. !endif
  9.  
  10. !if "$(CPU)" == "i386"
  11.  
  12. NTTools        =    i:\mstools
  13. cc                =    cl386
  14. cflags        =    $(stdflags) -Di386=1 -D_X86_=1
  15. obj            =    nt
  16.  
  17. !else
  18.  
  19. !if "$(CPU)" == "MIPS"
  20.  
  21. NTTools        =    d:\mstools
  22. cc                =    mcl
  23. cflags        =    $(stdflags) -DMIPS=1 -D_MIPS_=1
  24. obj            =    mips
  25.  
  26. !else
  27.  
  28. NTTools        =    c:\mstools
  29. cc                =    acc
  30. inc            =    -I$(NTTools)\h
  31. iclflags        =    -c -std -G 0 -checkstack 4096 -o $(obj)\$(@B).obj -O2
  32. ntflags        =    -DNT -DALPHA=1 -D_ALPHA_=1 -DWIN32 -Dcdecl= -Dend=EndOfData
  33. cflags        =    $(iclflags) $(ntflags) $(inc)
  34. cvtdebug        =    
  35. cvtobj        =    a2coff $(cvtdebug)
  36. obj            =    alpha
  37.  
  38. !endif
  39.  
  40. !endif
  41.  
  42.  
  43. LIB            =    $(NTTools)\lib
  44. INCLUDE        =    $(NTTools)\h
  45.  
  46. conlibs        =    libcmt.lib ntdll.lib kernel32.lib
  47. wildargv        =    $(LIB)\setargv.obj
  48.  
  49.  
  50. linkdebug    =    -debug:none
  51. link            =    link32 -subsystem:console -entry:mainCRTStartup $(linkdebug)
  52.  
  53.  
  54. {.}.c{$(obj)}.exe:
  55.     $(cc) $(cflags) $<
  56.     $(cvtobj) $(obj)\$(@B).obj
  57.     $(link) -out:$@ $(obj)\$(@B).obj $(conlibs)
  58.  
  59.  
  60. all:  $(obj)\args.exe $(obj)\dumpenv.exe $(obj)\myecho.exe $(obj)\rcode.exe
  61.